home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
LOGIC Apps
/
Logic-APPLE_II_APPS.iso
/
mac
/
LOGIC Apple II 5.25" Library - ProDOS
/
PRO023.dsk
/
QS6.bas
< prev
next >
Wrap
BASIC Source File
|
2012-02-16
|
1KB
|
34 lines
0 TEXT : HOME
9 PRINT : PRINT : PRINT
10 PRINT "You're in a contest to see who can slide fastest down a bannister."
12 PRINT : GOSUB 210
13 PRINT "What kind of pants would you wear?": PRINT : PRINT : GOSUB 210
14 PRINT " a) Sandpaper pants"
15 PRINT : GOSUB 220
16 PRINT " b) Cotton pants"
17 PRINT : GOSUB 220
18 PRINT " c) Teflon pants"
19 PRINT : GOSUB 220
20 PRINT " d) Velcro pants"
21 PRINT : PRINT
30 GET KY$
39 HOME : PRINT : PRINT : PRINT : PRINT : PRINT
40 IF KY$ = "c" OR KY$ = "C" THEN GOSUB 110: HOME : PRINT CHR$(4);"run qs7"
50 IF KY$ = "a" OR KY$ = "A" THEN GOSUB 100
60 IF KY$ = "b" OR KY$ = "B" THEN GOSUB 120
70 IF KY$ = "d" OR KY$ = "D" THEN GOSUB 130
80 IF KY$ < >"a" OR KY$ < >"A" OR KY$ < >"b" OR KY$ < >"B" OR KY$ < >"d" OR KY$ < >"D" THEN GOSUB 140
100 PRINT "Nope! You'll make the bannister smoother, but you won't finish first."
102 GOSUB 200: GOTO 0: RETURN
110 PRINT "You got it!! Teflon pants would be the smoothest pants in the world."
112 GOSUB 200: RETURN
120 PRINT "You're close, but there is something smoother than cotton."
122 GOSUB 200: GOTO 0: RETURN
130 PRINT "Nope!! On a Velcro bannister, you'ld be stuck for life."
132 GOSUB 200: GOTO 0: RETURN
140 PRINT "Please enter only A, B, C, or D!!"
142 GOSUB 200: GOTO 0: RETURN
180 END
200 FOR I = 0 TO 3200: NEXT : RETURN
210 FOR I = 0 TO 2000: NEXT : RETURN
220 FOR I = 0 TO 500: NEXT : RETURN